Optimal. Leaf size=802 \[ -\frac {2 p x}{g^2}+\frac {2 \sqrt {d} p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e} g^2}+\frac {\sqrt {d} \sqrt {e} f p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{g^2 (e f-d g)}-\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}-\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}-\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{g^{5/2}}+\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{2 g^{5/2}}+\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{2 g^{5/2}}+\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}+\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}+\frac {x \log \left (c \left (d+e x^2\right )^p\right )}{g^2}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}-\sqrt {g} x\right )}+\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}+\sqrt {g} x\right )}-\frac {3 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 g^{5/2}}+\frac {3 i \sqrt {f} p \text {Li}_2\left (1-\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{2 g^{5/2}}-\frac {3 i \sqrt {f} p \text {Li}_2\left (1+\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{4 g^{5/2}}-\frac {3 i \sqrt {f} p \text {Li}_2\left (1-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{4 g^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.19, antiderivative size = 802, normalized size of antiderivative = 1.00, number of steps
used = 43, number of rules used = 16, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.640, Rules used = {2526,
2498, 327, 211, 2521, 2513, 815, 649, 266, 2520, 12, 5048, 4966, 2449, 2352, 2497}
\begin {gather*} -\frac {e p \log \left (\sqrt {-f}-\sqrt {g} x\right ) (-f)^{3/2}}{2 g^{5/2} (e f-d g)}+\frac {e p \log \left (\sqrt {g} x+\sqrt {-f}\right ) (-f)^{3/2}}{2 g^{5/2} (e f-d g)}-\frac {2 p x}{g^2}+\frac {\sqrt {d} \sqrt {e} f p \text {ArcTan}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{g^2 (e f-d g)}+\frac {2 \sqrt {d} p \text {ArcTan}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e} g^2}-\frac {3 \sqrt {f} p \text {ArcTan}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{g^{5/2}}+\frac {3 \sqrt {f} p \text {ArcTan}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{2 g^{5/2}}+\frac {3 \sqrt {f} p \text {ArcTan}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{2 g^{5/2}}+\frac {x \log \left (c \left (e x^2+d\right )^p\right )}{g^2}-\frac {3 \sqrt {f} \text {ArcTan}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (c \left (e x^2+d\right )^p\right )}{2 g^{5/2}}-\frac {f \log \left (c \left (e x^2+d\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}-\sqrt {g} x\right )}+\frac {f \log \left (c \left (e x^2+d\right )^p\right )}{4 g^{5/2} \left (\sqrt {g} x+\sqrt {-f}\right )}+\frac {3 i \sqrt {f} p \text {PolyLog}\left (2,1-\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{2 g^{5/2}}-\frac {3 i \sqrt {f} p \text {PolyLog}\left (2,\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}+1\right )}{4 g^{5/2}}-\frac {3 i \sqrt {f} p \text {PolyLog}\left (2,1-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{4 g^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 211
Rule 266
Rule 327
Rule 649
Rule 815
Rule 2352
Rule 2449
Rule 2497
Rule 2498
Rule 2513
Rule 2520
Rule 2521
Rule 2526
Rule 4966
Rule 5048
Rubi steps
\begin {align*} \int \frac {x^4 \log \left (c \left (d+e x^2\right )^p\right )}{\left (f+g x^2\right )^2} \, dx &=\int \left (\frac {\log \left (c \left (d+e x^2\right )^p\right )}{g^2}+\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{g^2 \left (f+g x^2\right )^2}-\frac {2 f \log \left (c \left (d+e x^2\right )^p\right )}{g^2 \left (f+g x^2\right )}\right ) \, dx\\ &=\frac {\int \log \left (c \left (d+e x^2\right )^p\right ) \, dx}{g^2}-\frac {(2 f) \int \frac {\log \left (c \left (d+e x^2\right )^p\right )}{f+g x^2} \, dx}{g^2}+\frac {f^2 \int \frac {\log \left (c \left (d+e x^2\right )^p\right )}{\left (f+g x^2\right )^2} \, dx}{g^2}\\ &=\frac {x \log \left (c \left (d+e x^2\right )^p\right )}{g^2}-\frac {2 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{g^{5/2}}+\frac {f^2 \int \left (-\frac {g \log \left (c \left (d+e x^2\right )^p\right )}{4 f \left (\sqrt {-f} \sqrt {g}-g x\right )^2}-\frac {g \log \left (c \left (d+e x^2\right )^p\right )}{4 f \left (\sqrt {-f} \sqrt {g}+g x\right )^2}-\frac {g \log \left (c \left (d+e x^2\right )^p\right )}{2 f \left (-f g-g^2 x^2\right )}\right ) \, dx}{g^2}-\frac {(2 e p) \int \frac {x^2}{d+e x^2} \, dx}{g^2}+\frac {(4 e f p) \int \frac {x \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{\sqrt {f} \sqrt {g} \left (d+e x^2\right )} \, dx}{g^2}\\ &=-\frac {2 p x}{g^2}+\frac {x \log \left (c \left (d+e x^2\right )^p\right )}{g^2}-\frac {2 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{g^{5/2}}-\frac {f \int \frac {\log \left (c \left (d+e x^2\right )^p\right )}{\left (\sqrt {-f} \sqrt {g}-g x\right )^2} \, dx}{4 g}-\frac {f \int \frac {\log \left (c \left (d+e x^2\right )^p\right )}{\left (\sqrt {-f} \sqrt {g}+g x\right )^2} \, dx}{4 g}-\frac {f \int \frac {\log \left (c \left (d+e x^2\right )^p\right )}{-f g-g^2 x^2} \, dx}{2 g}+\frac {\left (4 e \sqrt {f} p\right ) \int \frac {x \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{d+e x^2} \, dx}{g^{5/2}}+\frac {(2 d p) \int \frac {1}{d+e x^2} \, dx}{g^2}\\ &=-\frac {2 p x}{g^2}+\frac {2 \sqrt {d} p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e} g^2}+\frac {x \log \left (c \left (d+e x^2\right )^p\right )}{g^2}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}-\sqrt {g} x\right )}+\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}+\sqrt {g} x\right )}-\frac {3 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 g^{5/2}}+\frac {\left (4 e \sqrt {f} p\right ) \int \left (-\frac {\tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{2 \sqrt {e} \left (\sqrt {-d}-\sqrt {e} x\right )}+\frac {\tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{2 \sqrt {e} \left (\sqrt {-d}+\sqrt {e} x\right )}\right ) \, dx}{g^{5/2}}+\frac {(e f p) \int \frac {x}{\left (\sqrt {-f} \sqrt {g}-g x\right ) \left (d+e x^2\right )} \, dx}{2 g^2}-\frac {(e f p) \int \frac {x}{\left (\sqrt {-f} \sqrt {g}+g x\right ) \left (d+e x^2\right )} \, dx}{2 g^2}-\frac {(e f p) \int \frac {x \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{\sqrt {f} g^{3/2} \left (d+e x^2\right )} \, dx}{g}\\ &=-\frac {2 p x}{g^2}+\frac {2 \sqrt {d} p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e} g^2}+\frac {x \log \left (c \left (d+e x^2\right )^p\right )}{g^2}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}-\sqrt {g} x\right )}+\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}+\sqrt {g} x\right )}-\frac {3 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 g^{5/2}}-\frac {\left (2 \sqrt {e} \sqrt {f} p\right ) \int \frac {\tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{\sqrt {-d}-\sqrt {e} x} \, dx}{g^{5/2}}+\frac {\left (2 \sqrt {e} \sqrt {f} p\right ) \int \frac {\tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{\sqrt {-d}+\sqrt {e} x} \, dx}{g^{5/2}}-\frac {\left (e \sqrt {f} p\right ) \int \frac {x \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{d+e x^2} \, dx}{g^{5/2}}-\frac {(e f p) \int \left (\frac {\sqrt {-f}}{(e f-d g) \left (\sqrt {-f}+\sqrt {g} x\right )}-\frac {-d \sqrt {g}-e \sqrt {-f} x}{\sqrt {g} (-e f+d g) \left (d+e x^2\right )}\right ) \, dx}{2 g^2}+\frac {(e f p) \int \left (\frac {\sqrt {-f}}{(e f-d g) \left (-\sqrt {-f}+\sqrt {g} x\right )}-\frac {d \sqrt {g}-e \sqrt {-f} x}{\sqrt {g} (-e f+d g) \left (d+e x^2\right )}\right ) \, dx}{2 g^2}\\ &=-\frac {2 p x}{g^2}+\frac {2 \sqrt {d} p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e} g^2}-\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}-\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}-\frac {4 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{g^{5/2}}+\frac {2 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{g^{5/2}}+\frac {2 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{g^{5/2}}+\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}+\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}+\frac {x \log \left (c \left (d+e x^2\right )^p\right )}{g^2}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}-\sqrt {g} x\right )}+\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}+\sqrt {g} x\right )}-\frac {3 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 g^{5/2}}-\frac {\left (e \sqrt {f} p\right ) \int \left (-\frac {\tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{2 \sqrt {e} \left (\sqrt {-d}-\sqrt {e} x\right )}+\frac {\tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{2 \sqrt {e} \left (\sqrt {-d}+\sqrt {e} x\right )}\right ) \, dx}{g^{5/2}}+2 \frac {(2 p) \int \frac {\log \left (\frac {2}{1-\frac {i \sqrt {g} x}{\sqrt {f}}}\right )}{1+\frac {g x^2}{f}} \, dx}{g^2}-\frac {(2 p) \int \frac {\log \left (\frac {2 \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\sqrt {f} \left (-i \sqrt {e}+\frac {\sqrt {-d} \sqrt {g}}{\sqrt {f}}\right ) \left (1-\frac {i \sqrt {g} x}{\sqrt {f}}\right )}\right )}{1+\frac {g x^2}{f}} \, dx}{g^2}-\frac {(2 p) \int \frac {\log \left (\frac {2 \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\sqrt {f} \left (i \sqrt {e}+\frac {\sqrt {-d} \sqrt {g}}{\sqrt {f}}\right ) \left (1-\frac {i \sqrt {g} x}{\sqrt {f}}\right )}\right )}{1+\frac {g x^2}{f}} \, dx}{g^2}-\frac {(e f p) \int \frac {-d \sqrt {g}-e \sqrt {-f} x}{d+e x^2} \, dx}{2 g^{5/2} (e f-d g)}+\frac {(e f p) \int \frac {d \sqrt {g}-e \sqrt {-f} x}{d+e x^2} \, dx}{2 g^{5/2} (e f-d g)}\\ &=-\frac {2 p x}{g^2}+\frac {2 \sqrt {d} p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e} g^2}-\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}-\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}-\frac {4 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{g^{5/2}}+\frac {2 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{g^{5/2}}+\frac {2 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{g^{5/2}}+\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}+\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}+\frac {x \log \left (c \left (d+e x^2\right )^p\right )}{g^2}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}-\sqrt {g} x\right )}+\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}+\sqrt {g} x\right )}-\frac {3 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 g^{5/2}}-\frac {i \sqrt {f} p \text {Li}_2\left (1+\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{g^{5/2}}-\frac {i \sqrt {f} p \text {Li}_2\left (1-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{g^{5/2}}+2 \frac {\left (2 i \sqrt {f} p\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-\frac {i \sqrt {g} x}{\sqrt {f}}}\right )}{g^{5/2}}+\frac {\left (\sqrt {e} \sqrt {f} p\right ) \int \frac {\tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{\sqrt {-d}-\sqrt {e} x} \, dx}{2 g^{5/2}}-\frac {\left (\sqrt {e} \sqrt {f} p\right ) \int \frac {\tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{\sqrt {-d}+\sqrt {e} x} \, dx}{2 g^{5/2}}+2 \frac {(d e f p) \int \frac {1}{d+e x^2} \, dx}{2 g^2 (e f-d g)}\\ &=-\frac {2 p x}{g^2}+\frac {2 \sqrt {d} p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e} g^2}+\frac {\sqrt {d} \sqrt {e} f p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{g^2 (e f-d g)}-\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}-\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}-\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{g^{5/2}}+\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{2 g^{5/2}}+\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{2 g^{5/2}}+\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}+\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}+\frac {x \log \left (c \left (d+e x^2\right )^p\right )}{g^2}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}-\sqrt {g} x\right )}+\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}+\sqrt {g} x\right )}-\frac {3 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 g^{5/2}}+\frac {2 i \sqrt {f} p \text {Li}_2\left (1-\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{g^{5/2}}-\frac {i \sqrt {f} p \text {Li}_2\left (1+\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{g^{5/2}}-\frac {i \sqrt {f} p \text {Li}_2\left (1-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{g^{5/2}}-2 \frac {p \int \frac {\log \left (\frac {2}{1-\frac {i \sqrt {g} x}{\sqrt {f}}}\right )}{1+\frac {g x^2}{f}} \, dx}{2 g^2}+\frac {p \int \frac {\log \left (\frac {2 \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\sqrt {f} \left (-i \sqrt {e}+\frac {\sqrt {-d} \sqrt {g}}{\sqrt {f}}\right ) \left (1-\frac {i \sqrt {g} x}{\sqrt {f}}\right )}\right )}{1+\frac {g x^2}{f}} \, dx}{2 g^2}+\frac {p \int \frac {\log \left (\frac {2 \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\sqrt {f} \left (i \sqrt {e}+\frac {\sqrt {-d} \sqrt {g}}{\sqrt {f}}\right ) \left (1-\frac {i \sqrt {g} x}{\sqrt {f}}\right )}\right )}{1+\frac {g x^2}{f}} \, dx}{2 g^2}\\ &=-\frac {2 p x}{g^2}+\frac {2 \sqrt {d} p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e} g^2}+\frac {\sqrt {d} \sqrt {e} f p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{g^2 (e f-d g)}-\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}-\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}-\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{g^{5/2}}+\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{2 g^{5/2}}+\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{2 g^{5/2}}+\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}+\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}+\frac {x \log \left (c \left (d+e x^2\right )^p\right )}{g^2}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}-\sqrt {g} x\right )}+\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}+\sqrt {g} x\right )}-\frac {3 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 g^{5/2}}+\frac {2 i \sqrt {f} p \text {Li}_2\left (1-\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{g^{5/2}}-\frac {3 i \sqrt {f} p \text {Li}_2\left (1+\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{4 g^{5/2}}-\frac {3 i \sqrt {f} p \text {Li}_2\left (1-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{4 g^{5/2}}-2 \frac {\left (i \sqrt {f} p\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-\frac {i \sqrt {g} x}{\sqrt {f}}}\right )}{2 g^{5/2}}\\ &=-\frac {2 p x}{g^2}+\frac {2 \sqrt {d} p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e} g^2}+\frac {\sqrt {d} \sqrt {e} f p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{g^2 (e f-d g)}-\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}-\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}-\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{g^{5/2}}+\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{2 g^{5/2}}+\frac {3 \sqrt {f} p \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{2 g^{5/2}}+\frac {e (-f)^{3/2} p \log \left (\sqrt {-f}+\sqrt {g} x\right )}{2 g^{5/2} (e f-d g)}+\frac {x \log \left (c \left (d+e x^2\right )^p\right )}{g^2}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}-\sqrt {g} x\right )}+\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{4 g^{5/2} \left (\sqrt {-f}+\sqrt {g} x\right )}-\frac {3 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 g^{5/2}}+\frac {3 i \sqrt {f} p \text {Li}_2\left (1-\frac {2 \sqrt {f}}{\sqrt {f}-i \sqrt {g} x}\right )}{2 g^{5/2}}-\frac {3 i \sqrt {f} p \text {Li}_2\left (1+\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}-\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{4 g^{5/2}}-\frac {3 i \sqrt {f} p \text {Li}_2\left (1-\frac {2 \sqrt {f} \sqrt {g} \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (i \sqrt {e} \sqrt {f}+\sqrt {-d} \sqrt {g}\right ) \left (\sqrt {f}-i \sqrt {g} x\right )}\right )}{4 g^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.93, size = 1349, normalized size = 1.68 \begin {gather*} \frac {1}{4} \left (\frac {6 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right ) \left (p \log \left (d+e x^2\right )-\log \left (c \left (d+e x^2\right )^p\right )\right )}{g^{5/2}}+\frac {4 x \left (-p \log \left (d+e x^2\right )+\log \left (c \left (d+e x^2\right )^p\right )\right )}{g^2}+\frac {2 f x \left (-p \log \left (d+e x^2\right )+\log \left (c \left (d+e x^2\right )^p\right )\right )}{g^2 \left (f+g x^2\right )}+p \left (\frac {4 \left (-\frac {i \sqrt {d}}{\sqrt {e}}+x\right ) \left (-1+\log \left (-\frac {i \sqrt {d}}{\sqrt {e}}+x\right )\right )}{g^2}+\frac {4 \left (\frac {i \sqrt {d}}{\sqrt {e}}+x\right ) \left (-1+\log \left (\frac {i \sqrt {d}}{\sqrt {e}}+x\right )\right )}{g^2}+\frac {i f \left (\frac {\log \left (-\frac {i \sqrt {d}}{\sqrt {e}}+x\right )}{\sqrt {f}+i \sqrt {g} x}+\frac {\sqrt {e} \left (-\log \left (i \sqrt {d}-\sqrt {e} x\right )+\log \left (i \sqrt {f}-\sqrt {g} x\right )\right )}{\sqrt {e} \sqrt {f}-\sqrt {d} \sqrt {g}}\right )}{g^{5/2}}+\frac {i f \left (\frac {\log \left (\frac {i \sqrt {d}}{\sqrt {e}}+x\right )}{\sqrt {f}+i \sqrt {g} x}+\frac {\sqrt {e} \left (-\log \left (i \sqrt {d}+\sqrt {e} x\right )+\log \left (i \sqrt {f}-\sqrt {g} x\right )\right )}{\sqrt {e} \sqrt {f}+\sqrt {d} \sqrt {g}}\right )}{g^{5/2}}+\frac {f \left (-i \left (\sqrt {e} \sqrt {f}+\sqrt {d} \sqrt {g}\right ) \log \left (-\frac {i \sqrt {d}}{\sqrt {e}}+x\right )+\sqrt {e} \left (i \sqrt {f}+\sqrt {g} x\right ) \left (\log \left (i \sqrt {d}-\sqrt {e} x\right )-\log \left (i \sqrt {f}+\sqrt {g} x\right )\right )\right )}{\left (\sqrt {e} \sqrt {f}+\sqrt {d} \sqrt {g}\right ) g^{5/2} \left (\sqrt {f}-i \sqrt {g} x\right )}-\frac {f \left (-\frac {\log \left (\frac {i \sqrt {d}}{\sqrt {e}}+x\right )}{i \sqrt {f}+\sqrt {g} x}-\frac {i \sqrt {e} \left (\log \left (i \sqrt {d}+\sqrt {e} x\right )-\log \left (i \sqrt {f}+\sqrt {g} x\right )\right )}{\sqrt {e} \sqrt {f}-\sqrt {d} \sqrt {g}}\right )}{g^{5/2}}+4 \left (\frac {x \left (2+\frac {f}{f+g x^2}\right )}{2 g^2}-\frac {3 \sqrt {f} \tan ^{-1}\left (\frac {\sqrt {g} x}{\sqrt {f}}\right )}{2 g^{5/2}}\right ) \left (-\log \left (-\frac {i \sqrt {d}}{\sqrt {e}}+x\right )-\log \left (\frac {i \sqrt {d}}{\sqrt {e}}+x\right )+\log \left (d+e x^2\right )\right )-\frac {3 i \sqrt {f} \left (\log \left (\frac {i \sqrt {d}}{\sqrt {e}}+x\right ) \log \left (\frac {\sqrt {e} \left (\sqrt {f}-i \sqrt {g} x\right )}{\sqrt {e} \sqrt {f}-\sqrt {d} \sqrt {g}}\right )+\text {Li}_2\left (-\frac {\sqrt {g} \left (\sqrt {d}-i \sqrt {e} x\right )}{\sqrt {e} \sqrt {f}-\sqrt {d} \sqrt {g}}\right )\right )}{g^{5/2}}+\frac {3 i \sqrt {f} \left (\log \left (\frac {i \sqrt {d}}{\sqrt {e}}+x\right ) \log \left (\frac {\sqrt {e} \left (\sqrt {f}+i \sqrt {g} x\right )}{\sqrt {e} \sqrt {f}+\sqrt {d} \sqrt {g}}\right )+\text {Li}_2\left (\frac {\sqrt {g} \left (\sqrt {d}-i \sqrt {e} x\right )}{\sqrt {e} \sqrt {f}+\sqrt {d} \sqrt {g}}\right )\right )}{g^{5/2}}+\frac {3 i \sqrt {f} \left (\log \left (-\frac {i \sqrt {d}}{\sqrt {e}}+x\right ) \log \left (\frac {\sqrt {e} \left (\sqrt {f}+i \sqrt {g} x\right )}{\sqrt {e} \sqrt {f}-\sqrt {d} \sqrt {g}}\right )+\text {Li}_2\left (-\frac {\sqrt {g} \left (\sqrt {d}+i \sqrt {e} x\right )}{\sqrt {e} \sqrt {f}-\sqrt {d} \sqrt {g}}\right )\right )}{g^{5/2}}-\frac {3 i \sqrt {f} \left (\log \left (-\frac {i \sqrt {d}}{\sqrt {e}}+x\right ) \log \left (\frac {\sqrt {e} \left (\sqrt {f}-i \sqrt {g} x\right )}{\sqrt {e} \sqrt {f}+\sqrt {d} \sqrt {g}}\right )+\text {Li}_2\left (\frac {\sqrt {g} \left (\sqrt {d}+i \sqrt {e} x\right )}{\sqrt {e} \sqrt {f}+\sqrt {d} \sqrt {g}}\right )\right )}{g^{5/2}}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.24, size = 0, normalized size = 0.00 \[\int \frac {x^{4} \ln \left (c \left (e \,x^{2}+d \right )^{p}\right )}{\left (g \,x^{2}+f \right )^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x^4\,\ln \left (c\,{\left (e\,x^2+d\right )}^p\right )}{{\left (g\,x^2+f\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________